const Router = require("koa-router")

const stashRouter = new Router({prefix: "/stash"})

const { create,list,edit,remove } = require("../controller/stash.controller")

// 创建仓库
stashRouter.put("/",create)
// 获取仓库列表
stashRouter.get("/",list)
// 修改仓库信息
stashRouter.post("/",edit)
// 修改仓库信息
stashRouter.delete("/",remove)


module.exports = stashRouter